<template>
	<view class="item-content">
		<view class="title">{{title}}</view>
		<view class="list-content">
			<slot></slot>
		</view>
		<view class="checkMore" @click="toMore">查看更多<text class="iconfont">&#xe68d;</text></view>
	</view>
</template>

<script>
	/**
	 * 目的地详情
	 * 
	 */
	export default {
		name: 'stDetailItem',
		props: {
			title: {
				type: String,
				default: '标题'
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			toMore(){
				this.$emit('toMore')
			}
		}
	}
</script>

<style lang="scss">
	.item-content{
		margin-top: 20rpx;
		background-color: $uni-bg-color;
		font-size: $uni-font-size-sm;
	}
	.title{
		position: relative;
		height: 78rpx;
		padding: 0 44rpx;
		line-height: 78rpx;
		border-bottom: 1rpx solid $uni-border-color;
		font-size: $uni-font-size-base;
		&:before{
			content: '';
			position: absolute;
			top: 50%;
			left: 25rpx;
			width: 5rpx;
			height: 28rpx;
			margin-top: -14rpx;
			background-color: $uni-bg-color-primary;
		}
	}
	.list-content{
		display: flex;
		flex-wrap:wrap;
		justify-content:space-between;
		padding: 5rpx 25rpx 0;
	}
	.checkMore{
		display: flex;
		align-items: center;
		justify-content: center;
		height: 93rpx;
		color: $uni-text-color-primary;
	}
</style>
